package javase.ch03.tongxun.sync;

public class Test {
    public static void main(String[] args) {
        House house =   new House();

        Thread tA = new Thread(new Consumer(house), "消费者A");
        tA.start();
        Thread TB = new Thread(new Consumer(house), "消费者B");
        TB.start();
        Thread TC = new Thread(new Prtoduct(house), "生产者C");
        TC.start();
        new Thread(new Prtoduct(house), "生产者D").start();

    }

}
